#ifndef     __PLAYER_H
#define     __PLAYER_H

#include "./de_mux.h"
#include "./decoder.h"
#include "./sdl_window.h"
#include <QWidget>
#include "./play_task.h"

class Player {

public:
    Player(QWidget *window);
    ~Player();

    void play(const QString &file_path);

private:
    SDLWindow m_win;
    std::unique_ptr<PlayTask> m_task = nullptr;
    std::thread m_play_task;
};

#endif


